#include <stdio.h>

int main () {
	int l, m, n;
	scanf("%d", &l);
	for (m = 1; m <= l; m++) {
		for (n = 1; n <= l - m; n++) {
			printf(" ");
		}
		for (n = 1; n <= 2 * m - 1; n++) {
			printf("*");
		}
		printf("\n");
	}
	for (m = 1; m <= l - 1; m++) {
		for (n = 1; n <= m; n++) {
			printf(" ");
		}
		for (n = 1; n <= 2 * l - 1 - 2 * m; n++) {
			printf("*");
		}
		printf("\n");
	}
	return 0;
}